package com.yedean.mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.yedean.mybatisplus.enums.SexEnum;
import lombok.*;

/**
 * @author HUAWEI
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@AllArgsConstructor
@Builder
public class User {
    @TableId(value = "u_id",type = IdType.AUTO)
    private Long id;
    @TableField("user_name")
    private String name;
    
    private Integer age;
    
    private String email;
    @TableLogic
    private Integer isDeleted;
    
    @TableField("sex")
    private SexEnum sexEnum;
}
